package com.liwu.base.spring.test.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @author: liwu
 * @version: 1.0.0
 * @email: <a href="mailto:liwu@pingpongx.com">联系作者</a>
 * @date: 2018/2/3 - 下午6:06
 */
@Aspect
public class TrackCounter {

    @Pointcut("execution(* com.liwu.base.spring.test.aop.inter.Performance.perform(int)) && args(trackNumber)")
    public void hello(int trackNumber){

    }

    @Before("hello(trackNumber)")
    public   void  test1(int trackNumber){

       System.out.println("传入的参数为"+trackNumber);
    }


}
